<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- v-once 常量 -->
		<div id="app" v-once>
			{{ msg }}
		</div>
		<!-- 变量 -->
		<div id="app2">
			<!-- Vue 插值表达式 -->
			{{msg}} 
			<p>{{msg == 456 ? '1':'2' }}</p>
		</div>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app",
				data: {
					msg: 123
				}
			});
			vm.msg = 456;
		</script>
		<script type="text/javascript">
			var vm = new Vue({
				el: "#app2",
				data: {
					msg: 123
				}
			});
			vm.msg = 456;
		</script>
	</body>
</html>
